﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model
{
    /// <summary>
    /// 图片库
    /// </summary>
    [Serializable]
    [Table("Image")]
    public class Image : UserID
    {
        /// <summary>
        /// 文件在数据库中的显现名称.为空则显示为名字。
        /// </summary>

        public String Title { get; set; }
        /// <summary>
        /// 文件保存在磁盘的真实名称，目前不可更改
        /// </summary>
        public String Name { get; set; }
        /// <summary>
        /// 路径
        /// </summary>
        [Required(ErrorMessage = "路径必填")]
        public String Path { get; set; }
        /// <summary>
        /// SIEZ为oracle的关键词 
        /// </summary>
        public float Size { get; set; }
    }
}
